import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import main from '@/views/main/main.vue'
import login from '@/views/login/login.vue';

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/main',
      children: [
        {
          path: '/main',
          component: main
        },
        {
          path: '/login',
          component: login
        }
      ]
    },
  ]
})

export default router
